﻿@************************************************************************************//
// Autor:  			     Adrian Di Puglia						     				*//
//***********************************************************************************//
// Details()	Acceso solo ADMINISTRADOR											*//
// Vista que devuelve la planilla que permite visulizar un usuario especificado.    *//
// _________________________________________________________________________________*@
@model File_Manager.Models.ParentModelViewUser
           
@{
    ViewBag.Title = "Detalles";
}


<h2>Detalles</h2>

    <fieldset>
            <legend>Datos del Estudiante</legend><br />
                <table width= "100%">
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.name)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.name)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.last_name)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.last_name)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.UserModel.UserName)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.UserModel.UserName)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.phone)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.phone)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.idStatus)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.nStatus.name)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.UserModel.Email)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.UserModel.Email)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td width="50%">
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.idRol)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.nRol.name)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.career)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.career)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.zone)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.zone)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.school)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.school)
                            </div>
                        </td>
                    </tr>
                </table>
        </fieldset>
        <fieldset>
            <legend>Datos del Representante</legend><br />
                <table width= "100%">
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.parent_name)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.parent_name)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.parent_last_name)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.parent_last_name)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td width= "50%">
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.parent_cedula)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.parent_cedula)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.parent_phone)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.parent_phone)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.parent_email)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.User_I.parent_email)
                            </div>
                        </td>
                        <td>

                        </td>
                    </tr>
                </table>
        </fieldset>
        <fieldset>
            <legend>Datos de la Inscripción</legend><br />
                <table width= "100%">
                    <tr>
                        <td>
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.idTurno)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.nTurno.name)
                            </div>
                        </td>
                        <td width= "50%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.idSede)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.nSede.name)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td >
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.idModoPago)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.nModoPago.name)
                            </div>
                        </td>
                            <td>
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.n_cuotas_pago)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.n_cuotas_pago) / @ViewBag.CuotasPendientes  @if(Model.User_I.idStatus==1){ <div class="error" style="display:inline;"> * Por Revisar</div>}
                            </div>
                        </td>
                    </tr>
               </table>
        </fieldset>
        <fieldset>
            <legend>Pago de Cuotas</legend><br />
               <table width= "100%">
                    <tr>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.idFormaPago)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.nFormaPago.name)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.n_transaction)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.n_transaction)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.transactionDate)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.transactionDate)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.verificado)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.verificado)
                            </div>
                        </td>
                    </tr>
                    @if(Model.User_I.n_transaction02!=null){
                    <tr>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.idFormaPago02)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.nFormaPago02.name)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.n_transaction02)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.n_transaction02)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.transactionDate02)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.transactionDate02)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.verificado02)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.verificado02)
                            </div>
                        </td>
                    </tr>
                    }
                    @if(Model.User_I.n_transaction03!=null){
                    <tr>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.idFormaPago03)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.nFormaPago03.name)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.n_transaction03)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.n_transaction03)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.transactionDate03)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.transactionDate03)
                            </div>
                        </td>
                         <td width="25%">
                            <div class="editor-label"> <b>@Html.LabelFor(m => m.User_I.verificado03)</b></div>
                            <div class="editor-field">
                                @Html.DisplayFor(model => model.User_I.verificado03)
                            </div>
                        </td>
                    </tr>
                    }
                </table>
        </fieldset>
        <fieldset>
            <legend>Datos de Recomendación</legend><br />
                <table width= "100%">   
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.User_I.recomendado)</b></div>
                            <div class="display-field">
                            @if (Model.User_I.recomendado==null)
                            {
                                <p>No posee datos de Alumno</p>
                            }
                            else
                            {
                                 @Html.DisplayFor(model => model.User_I.recomendado)
                            } 
                            </div>
                        </td>
                    </tr>
                </table>
        </fieldset>
        <fieldset>
            <legend>Datos de Cuenta</legend><br />
                <table width= "100%">
                    <tr>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.UserModel.CreationDate)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.UserModel.CreationDate)
                            </div>
                        </td>
                        <td>
                            <div class="display-label"> <b>@Html.LabelFor(m => m.UserModel.LastLoginDate)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.UserModel.LastLoginDate)
                            </div>  
                        </td>
                    </tr>
                    <tr>
                        <td width= "50%">
                            <div class="display-label"> <b>Status de Aprobación</b></div>
                            <div class="display-field">
                                    @if (Model.UserModel.IsApproved.ToString() == "False")
                                    {
                                        <div>Bloqueado</div>
                                    }
                                    else
                                    {
                                        <div>Activo</div>
                                    }
                            </div> 
                        </td>
                        <td>

                        </td>
                    </tr>
                </table>
        </fieldset>

<div>
    @Html.ActionLink("Menú Anterior", "SearchIndex")
</div>
